﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;

namespace Guline.Web.Central.Party
{
    public class NotificationService
    {
        public static string API_URL = "http://guline.com:3000";

        public bool SendSms(string room, string toNumber, string Content, int MessageID)
        {
            WebClient client = new WebClient();
            String sResult = client.DownloadString(API_URL + "/api/room/post?room=" + room + "&msg={'tophonenumber':'" + toNumber + "','content':'" + Content + "','msgid':" + MessageID + "}");

            return (sResult == "1");
        }

    }
}